home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
SHLOBJ.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
17KB
|
534 lines
//----------------------------------------------------------------------------
// ShlObj.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: ShlObj.pas
//----------------------------------------------------------------------------
#ifndef ShlObjHPP
#define ShlObjHPP
//----------------------------------------------------------------------------
#include <Messages.hpp>
#include <RegStr.hpp>
#include <ShellAPI.hpp>
#include <CommCtrl.hpp>
#include <OLE2.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Shlobj
{
//-- type declarations -------------------------------------------------------
struct TSHItemID;
typedef TSHItemID *PSHItemID;
#pragma pack(push, 1)
struct TSHItemID
{
Word cb;
Byte abID[1];
} ;
#pragma pack(pop)
#pragma pack(push, 1)
struct TItemIDList
{
TSHItemID mkid;
} ;
#pragma pack(pop)
typedef TItemIDList *PItemIDList;
struct TCMInvokeCommandInfo;
typedef TCMInvokeCommandInfo *PCMInvokeCommandInfo;
#pragma pack(push, 1)
struct TCMInvokeCommandInfo
{
int cbSize;
int fMask;
HWND hwnd;
char *lpVerb;
char *lpParameters;
char *lpDirectory;
int nShow;
int dwHotKey;
int hIcon;
} ;
#pragma pack(pop)
class __declspec(delphiclass) IContextMenu;
class __declspec(pascalimplementation) IContextMenu : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall QueryContextMenu(HMENU Menu, int indexMenu, int idCmdFirst, int idCmdLast, int
uFlags) = 0;
virtual long __stdcall InvokeCommand(TCMInvokeCommandInfo &lpici) = 0;
virtual long __stdcall GetCommandString(int idCmd, int uType, PUINT pwReserved, char * pszName, int
cchMax) = 0;
public:
/* TObject.Create */ __fastcall IContextMenu(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IContextMenu(void) { }
};
class __declspec(delphiclass) IShellExtInit;
class __declspec(pascalimplementation) IShellExtInit : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall Initialize(PItemIDList pidlFolder, Ole2::IDataObject* lpdobj, HKEY hKeyProgID
) = 0;
public:
/* TObject.Create */ __fastcall IShellExtInit(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IShellExtInit(void) { }
};
class __declspec(delphiclass) IShellPropSheetExt;
class __declspec(pascalimplementation) IShellPropSheetExt : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall AddPages(Commctrl::TFNAddPropSheetPage lpfnAddPage, long lParam) = 0;
virtual long __stdcall ReplacePage(int uPageID, Commctrl::TFNAddPropSheetPage lpfnReplaceWith, long
lParam) = 0;
public:
/* TObject.Create */ __fastcall IShellPropSheetExt(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IShellPropSheetExt(void) { }
};
class __declspec(delphiclass) IExtractIcon;
class __declspec(pascalimplementation) IExtractIcon : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall GetIconLocation(int uFlags, char * szIconFile, int cchMax, int &piIndex, int
&pwFlags) = 0;
virtual long __stdcall Extract(char * pszFile, int nIconIndex, HICON &phiconLarge, HICON &phiconSmall
, int nIconSize) = 0;
public:
/* TObject.Create */ __fastcall IExtractIcon(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IExtractIcon(void) { }
};
class __declspec(delphiclass) IShellLink;
class __declspec(pascalimplementation) IShellLink : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall GetPath(char * pszFile, int cchMaxPath, WIN32_FIND_DATAA &pfd, int fFlags) = 0
;
virtual long __stdcall GetIDList(PItemIDList &ppidl) = 0;
virtual long __stdcall SetIDList(PItemIDList pidl) = 0;
virtual long __stdcall GetDescription(char * pszName, int cchMaxName) = 0;
virtual long __stdcall SetDescription(char * pszName) = 0;
virtual long __stdcall GetWorkingDirectory(char * pszDir, int cchMaxPath) = 0;
virtual long __stdcall SetWorkingDirectory(char * pszDir) = 0;
virtual long __stdcall GetArguments(char * pszArgs, int cchMaxPath) = 0;
virtual long __stdcall SetArguments(char * pszArgs) = 0;
virtual long __stdcall GetHotkey(Word &pwHotkey) = 0;
virtual long __stdcall SetHotkey(Word wHotkey) = 0;
virtual long __stdcall GetShowCmd(int &piShowCmd) = 0;
virtual long __stdcall SetShowCmd(int iShowCmd) = 0;
virtual long __stdcall GetIconLocation(char * pszIconPath, int cchIconPath, int &piIcon) = 0;
virtual long __stdcall SetIconLocation(char * pszIconPath, int iIcon) = 0;
virtual long __stdcall SetRelativePath(char * pszPathRel, int dwReserved) = 0;
virtual long __stdcall Resolve(HWND Wnd, int fFlags) = 0;
virtual long __stdcall SetPath(char * pszFile) = 0;
public:
/* TObject.Create */ __fastcall IShellLink(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IShellLink(void) { }
};
class __declspec(delphiclass) ICopyHook;
class __declspec(pascalimplementation) ICopyHook : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual int __stdcall CopyCallback(HWND Wnd, int wFunc, int wFlags, char * pszSrcFile, int dwSrcAttribs
, char * pszDestFile, int dwDestAttribs) = 0;
public:
/* TObject.Create */ __fastcall ICopyHook(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ICopyHook(void) { }
};
class __declspec(delphiclass) IFileViewerSite;
class __declspec(pascalimplementation) IFileViewerSite : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall SetPinnedWindow(HWND Wnd) = 0;
virtual long __stdcall GetPinnedWindow(HWND &Wnd) = 0;
public:
/* TObject.Create */ __fastcall IFileViewerSite(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IFileViewerSite(void) { }
};
struct TFVShowInfo;
typedef TFVShowInfo *PFVShowInfo;
#pragma pack(push, 1)
struct TFVShowInfo
{
int cbSize;
HWND hwndOwner;
int iShow;
int dwFlags;
Windows::TRect rect;
Ole2::IUnknown* punkRel;
wchar_t strNewFile[260];
} ;
#pragma pack(pop)
class __declspec(delphiclass) IFileViewer;
class __declspec(pascalimplementation) IFileViewer : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall ShowInitialize(IFileViewerSite* fsi) = 0;
virtual long __stdcall Show(TFVShowInfo &pvsi) = 0;
virtual long __stdcall PrintTo(char * pszDriver, DWord fSuppressUI) = 0;
public:
/* TObject.Create */ __fastcall IFileViewer(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IFileViewer(void) { }
};
struct TStrRet;
typedef TStrRet *PSTRRet;
#pragma pack(push, 1)
struct TStrRet
{
int uType;
union
{
char cStr[260];
int uOffset;
wchar_t *pOleStr;
};
} ;
#pragma pack(pop)
typedef int __stdcall (*TFNBFFCallBack)(HWND Wnd, int uMsg, long lParam, long lpData);
struct TBrowseInfo;
typedef TBrowseInfo *PBrowseInfo;
#pragma pack(push, 1)
struct TBrowseInfo
{
HWND hwndOwner;
TItemIDList *pidlRoot;
char *pszDisplayName;
char *lpszTitle;
int ulFlags;
TFNBFFCallBack lpfn;
long lParam;
int iImage;
} ;
#pragma pack(pop)
class __declspec(delphiclass) IEnumIDList;
class __declspec(pascalimplementation) IEnumIDList : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall Next(Cardinal celt, PItemIDList &rgelt, Cardinal &pceltFetched) = 0;
virtual long __stdcall Skip(Cardinal celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumIDList* &ppenum) = 0;
public:
/* TObject.Create */ __fastcall IEnumIDList(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumIDList(void) { }
};
class __declspec(delphiclass) IShellFolder;
class __declspec(pascalimplementation) IShellFolder : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall ParseDisplayName(HWND hwndOwne